import type { ComputedRef } from "vue";
import usePermissionStore from '@/store/modules/permission'
import useUserStore from "@/store/modules/user";

export default function () {
  /*permission*/
  const roles = computed(() => {
    return useUserStore().roles;
  });
  const permission: ComputedRef<any> = computed(() => {
    return usePermissionStore().permission;
  });
  return {
    roles,
    permission,
  };
}
